using System;
using UnityEngine;
using System.Collections;

namespace UI
{
    public class PetAttributeLabel :MonoBehaviour
    {
        public UILabel attriName;
        public UILabel attriValue;
        public UILabel isLock;

        public void SetLabel(string name, string value,bool isLock = false)
        {
            if(!isLock)
            {
                this.isLock.gameObject.SetActive(false);
            }
            this.isLock.text = TableTextBlo.GetText("ui_pet_lock");
            attriName.text = TableTextBlo.GetText("word_" + name);
            attriValue.text = value;
        }
    }
}